import {
    http4
} from "@/service/axios";


// 地磁传感器列表
export function getGeomagnetism(data) {
    return http4.post({
      url: "/road/sensor/list/page",
      data,
    });
  }
  
  // 新增地磁传感器
  export function getAddGeomagnetism(data) {
    return http4.post({
      url: "/road/sensor/add",
      data,
    });
  }
  
  // 编辑地磁传感器
  export function getEditGeomagnetism(data) {
    return http4.post({
      url: "/road/sensor/edit",
      data,
    });
  }
  
  // 删除地磁传感器
  export function getDeleteGeomagnetism(data) {
    return http4.post({
      url: `/road/sensor/remove/${data}`,
      data,
    });
  }
  
  // 地磁设备修改状态接口
  export function getStatusGeomagnetism({ data, status }) {
    return http4.post({
      url: `/road/sensor/edit/${status}`,
      data,
    });
  }
  
  // 地磁下载模版
  export function getExportGeo(data) {
    return http4.get({
      url: `/road/sensor/import/template/download`,
      data,
      responseType: "blob",
    });
  }
  
  // 地磁导出
  export function getExportGeomagnetism(data) {
    return http4.post({
      url: "/road/sensor/export",
      data,
      responseType: "blob",
    });
  }